<div id="groups">
    <{includeq file="db:groups_header.html"}>
    <div class="group-main">
        <div class="gp-content" >
            <div style="padding: 5px 0; border-bottom: 1px solid #C8D2F0;"> 
                搜索结果: <{$search_total}> 关键字: <{foreachq item=item from=$search_keys}><span style="padding: 2px ; color: #ff0000"><{$item}></span> &nbsp;<{/foreach}>
            </div>
            <div style="padding: 10px 5px;">
                <{if $topics}>
                <table width="100%">
                    <{foreachq item=item from=$topics}>
                	<tr>
                		<td width="8%">
                			<div style="padding: 5px 0;text-align: center;">
                			     <a href="<{$smarty.const._GROUPS_USERINFO_URL}><{$item.uid}>"><img src="<{$item.author_avatar}>" alt="" style="max-width: 30px;" /></a>
                			</div>
                			<div style="text-align: center;">
                			     <{$item.online}> <a href="<{$smarty.const._GROUPS_USERINFO_URL}><{$item.uid}>"><{$item.author}></a>
                			</div>
                		</td>
                		<td valign="top">
                            <div style="line-height: 18px; padding: 5px 0">
                                <div>
                                    <a href="<{$groups_url}>/viewthread.php?tid=<{$item.tid}>"><strong><{$item.subject}></strong></a>
                                </div>
                                <div><small><{$item.dateline}> | 回复: <{$item.threads_replies}></small> </div>
                            </div>
                		</td>
                	</tr>
                    <{/foreach}>
                </table>
                <{$pagenav}>
                <{else}>
                    抱歉，没有搜索到任何群组.
                <{/if}>
            </div>
        </div>
	</div>
	
	<div class="group-left">
		<div class="gp-block">
			<div class="gp-blocktitle"><{$smarty.const._GP_CATEGORY}></div>
			<div class="gp-blockcontent">
				<{assign var="n" value="0"}>
                <{assign var="v" value="2"}>
                <table width="100%" cellspacing="0">
                    <{foreachq item=item key=key from=$categories name="list"}>
                    <{if $n++%$v eq "0"}><tr><{/if}>
                        <td style="padding: 3px 0;"><a href="<{$groups_url}>/category.php?CatId=<{$key}>" <{if $key eq $cat_id }> style="background-color: #C8D2F0;"<{/if}> ><{$item}></a></td>
                        <{if $smarty.foreach.list.last AND $n%$v neq "0"}><td colspan="<{$v-$n%$v}>">&nbsp;</td><{/if}>
                    <{if $n%$v eq "0"}></tr><{/if}>
                    <{/foreach}>
                </table>
			</div>
		</div>
	</div>		
	
	<div class="clearfix"></div>
</div>